package com.sinosoft.hydra.um.vo;

import cn.com.sinux.spring.commons.TreeNode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * created:2014/12/03
 * <p>树形菜单节点信息VO</p>
 *
 * @author oujianlin@sinosoft.co
 */
public class Node implements TreeNode<Node>, Serializable {
    private static final long serialVersionUID = -5986168628239921292L;
    private String id;    //节点主键ID
    private String name;//节点名称
    private String text;//节点名称
    private boolean checked;//是否选中
    private String parentId;
    private String chkDisabled;//是否禁用选中
    private String iconSkin;//节点图标 css
    private String open;//是否打开
    private String expanded;//是否展开
    private String alias;//菜单对应的页面别名
    private String controller;//控制器
    private boolean leaf;//是否是链接菜单
    private boolean tempOrg;//是否为临时部门  true || false
    private boolean isParent;//是否为父节点 true  || false
    private boolean isUserMember;//当前节点为用户 true || false
    private List<Node> children = new ArrayList<Node>();//字节点

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getExpanded() {
        return expanded;
    }


    public void setExpanded(String expanded) {
        this.expanded = expanded;
    }

    public Node() {
        super();
    }


    public boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public String getAlias() {
        return alias;
    }


    public void setAlias(String alias) {
        this.alias = alias;
    }


    public String getController() {
        return controller;
    }


    public void setController(String controller) {
        this.controller = controller;
    }


    public String getChkDisabled() {
        return chkDisabled;

    }

    public void setChkDisabled(String chkDisabled) {
        this.chkDisabled = chkDisabled;
    }

    public boolean getChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getIconSkin() {
        return iconSkin;
    }


    public void setIconSkin(String iconSkin) {
        this.iconSkin = iconSkin;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Node> getChildren() {
        return children;
    }

    public String getName() {
        return name;
    }

    public void setChildren(List<Node> children) {
        this.children = children;
    }


    public String getOpen() {
        return open;
    }


    public void setOpen(String open) {
        this.open = open;
    }

    public String getText() {
        return text;
    }


    public void setText(String text) {
        this.text = text;
    }


    public boolean getTempOrg() {
        return tempOrg;
    }


    public void setTempOrg(boolean tempOrg) {
        this.tempOrg = tempOrg;
    }


    public boolean getIsParent() {
        return isParent;
    }


    public void setIsParent(boolean isParent) {
        this.isParent = isParent;
    }


    public boolean getIsUserMember() {
        return isUserMember;
    }


    public void setIsUserMember(boolean isUserMember) {
        this.isUserMember = isUserMember;
    }


}
